home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWStream / Sources / FWMemSin.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.6 KB  |  48 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWMemSin.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWMEMSIN_H
  13. #include "FWMemSin.h"
  14. #endif
  15.  
  16.  
  17. #ifdef FW_BUILD_MAC
  18. #pragma segment File
  19. #endif
  20.  
  21. //========================================================================================
  22. // CLASS FW_PMemorySink
  23. //========================================================================================
  24.  
  25. //----------------------------------------------------------------------------------------
  26. //    FW_PMemorySink::FW_PMemorySink
  27. //----------------------------------------------------------------------------------------
  28. FW_PMemorySink::FW_PMemorySink(Environment* ev, FW_OMemorySink* theMemorySink) :
  29.     FW_PRandomAccessSink(ev, theMemorySink)
  30. {
  31. }
  32.  
  33. //----------------------------------------------------------------------------------------
  34. //    FW_PMemorySink::FW_PMemorySink
  35. //----------------------------------------------------------------------------------------
  36. FW_PMemorySink::FW_PMemorySink(Environment* ev, void* buffer, long capacity, long length) :
  37.     FW_PRandomAccessSink(ev, new FW_OMemorySink())
  38. {
  39.     ((FW_OMemorySink*)GetRep())->InitFromBuffer(ev, buffer, capacity, length);
  40. }
  41.  
  42. //----------------------------------------------------------------------------------------
  43. //    FW_PMemorySink:~FW_PMemorySink
  44. //----------------------------------------------------------------------------------------
  45. FW_PMemorySink::~FW_PMemorySink()
  46. {
  47. }
  48.